<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript" charset="utf-8">
			let days=["星期天"，"星期一"，"星期二"，"星期三"，"星期四"，"星期五"，"星期六"]
			function show(){
				let x = new Date()
				let year = x.getFullYear()
				let month = format(x.getMonth()+1)
				let date = format(x.getDate())
				let h =format(x.getHours())
				let m =format(x.getMinutes())
				let s =format(x.getSeconds())
				let week= days[x.getDate()]
				let str = `${year}-${month}-${date} ${h}:${m}:${s} ${week}`,
				document.querySelector("div").innerHTML=str
			}
			function format(num){
				if (num<10) {
					num = "0"+num
				}
				return num
			}
		</script>
	</head>
	<body>
		<div style="font-size: 32px; font-weight: 900;"></div>
		<script type="text/javascript">
			setInterval(show,1000)
		</script>
	</body>
</html>
